convert between exponential logarithmic forms